// adc2 headers var adc_creative_10801_clicks = []; var adc_creative_10801_events = []; adc_creative_10801_clicks['CLICK'] = 'http://adc2.adcentriconline.com/adcentric/form/1498/2/43152;id=21410'; adc_creative_10801_clicks['NOSCRIPT_CLICK'] = 'http://adc2.adcentriconline.com/adcentric/form/1498/2/43152;id=21409'; adc_creative_10801_events['MOUSE_OUT'] = 'http://adc2.adcentriconline.com/adcentric/event/1498/3/43152;id=29566'; /* requires core.js */ ADCENTRIC.lang.namespace("ADCENTRIC.architectures") ADCENTRIC.env.architectures = ADCENTRIC.env.architectures || { }; ADCENTRIC.env.architectures['DOM_id_prefix'] = "adcentric"; ADCENTRIC.env.architectures.NonRippleBanner = ADCENTRIC.env.architectures.NonRippleBanner || {}; ADCENTRIC.env.getADCLicence = function() { var user = "http://assets.adcentriconline.com/adc2_creatives".split("/")[3].split("_")[0]; if(user == "adc2") { var assetUser = ""; } else { var assetUser =user; } return {"user": user, "asset": assetUser}} ADCENTRIC.env.assetURL = "http://"+ADCENTRIC.env.getADCLicence().asset+"assets.adcentriconline.com/"+ADCENTRIC.env.getADCLicence().user+"_creatives/"; ADCENTRIC.env.clickURL = "http://"+ADCENTRIC.env.getADCLicence().user+".adcentriconline.com/adcentric/form/" ADCENTRIC.env.toRegEx = function(url) { return new RegExp(url, "gi"); } ADCENTRIC.env.creatives = ADCENTRIC.env.creatives || {}; ADCENTRIC.env.creatives[10801] = ADCENTRIC.env.creatives[10801] || {}; ADCENTRIC.env.creatives[10801].placements = ADCENTRIC.env.creatives[10801].placements || {}; ADCENTRIC.env.creatives[10801].placements[43152] = ADCENTRIC.env.creatives[10801].placements[43152] || {}; ADCENTRIC.env.creatives[10801].placements[43152].assets = ADCENTRIC.env.creatives[10801].placements[43152].assets || {}; ADCENTRIC.env.creatives[10801].placements[43152].variables = ADCENTRIC.env.creatives[10801].placements[43152].variables || {}; ADCENTRIC.env.creatives[10801].placements[43152].clicks = ADCENTRIC.env.creatives[10801].placements[43152].clicks || {}; ADCENTRIC.env.creatives[10801].placements[43152].interactions = ADCENTRIC.env.creatives[10801].placements[43152].interactions || {}; ADCENTRIC.env.creatives[10801].placements[43152].clicks['CLICK'] = "http://adc2.adcentriconline.com/adcentric/form/1498/2/43152;id=21410"; ADCENTRIC.env.creatives[10801].placements[43152].clicks['NOSCRIPT_CLICK'] = "http://adc2.adcentriconline.com/adcentric/form/1498/2/43152;id=21409"; ADCENTRIC.env.creatives[10801].placements[43152].variables['COLLAPSED_WIDTH'] = "300"; ADCENTRIC.env.creatives[10801].placements[43152].variables['COLLAPSED_HEIGHT'] = "250"; ADCENTRIC.env.creatives[10801].placements[43152].variables['ZINDEX'] = "1000"; ADCENTRIC.env.creatives[10801].placements[43152].variables['POSITION'] = "relative"; ADCENTRIC.env.creatives[10801].placements[43152].variables['MSIE_WMODE'] = "transparent"; ADCENTRIC.env.creatives[10801].placements[43152].variables['FF_WMODE'] = "transparent"; ADCENTRIC.env.creatives[10801].placements[43152].variables['IS_DAP'] = "false"; ADCENTRIC.env.creatives[10801].placements[43152].variables['MARGIN_AUTO_FF'] = "true"; ADCENTRIC.env.creatives[10801].placements[43152].variables['MARGIN_AUTO_IE'] = "false"; ADCENTRIC.env.creatives[10801].placements[43152].variables['ON_LOAD'] = "false"; ADCENTRIC.env.creatives[10801].placements[43152].variables['FORCE_BACKUP_GIF'] = "false"; ADCENTRIC.env.creatives[10801].placements[43152].variables['CLICK_OVER_SWF'] = "false"; ADCENTRIC.env.creatives[10801].placements[43152].variables['BORDER'] = "false"; ADCENTRIC.env.creatives[10801].placements[43152].assets['BANNER'] = "http://assets.adcentriconline.com/adc2_creatives/1498/10801/BANNER_1.swf"; ADCENTRIC.env.creatives[10801].placements[43152].assets['NOSCRIPT_BANNER'] = "http://assets.adcentriconline.com/adc2_creatives/1498/10801/NOSCRIPT_BANNER_1.jpg"; /* Make secure if secure */ ADCENTRIC.makeSecure = function(creative_id, placement_id) { var cr = ADCENTRIC.env.creatives[creative_id].placements[placement_id]; var myprotocol = "http:"; if(window.location.protocol == "https:") { myprotocol = "https:"; } for (var key in cr.clicks) { cr.clicks[key] = cr.clicks[key].replace(/http\:/, myprotocol); } for (var key in cr.assets) { cr.assets[key] = cr.assets[key].replace(/http\:/, myprotocol); } ADCENTRIC.env.assetURL = ADCENTRIC.env.assetURL.replace(/http\:/, myprotocol); ADCENTRIC.env.clickURL = ADCENTRIC.env.clickURL.replace(/http\:/, myprotocol); } ADCENTRIC.makeSecure('10801', '43152') ADCENTRIC.env.architectures.NonRippleBanner = function(creative_id, placement_id) { var cr = ADCENTRIC.env.creatives[10801].placements[43152]; var zindex = cr.variables['ZINDEX'] || "1000"; var position = cr.variables['POSITION'] || "relative"; var width = cr.variables['COLLAPSED_WIDTH']; var height = cr.variables['COLLAPSED_HEIGHT']; var msie_wmode = cr.variables['MSIE_WMODE'] || "opaque"; var ff_wmode = cr.variables['FF_WMODE'] || "opaque"; var is_dap = cr.variables['IS_DAP'] || false; if(navigator.userAgent.indexOf('MSIE') == -1) { is_dap = false; } var margin_auto_ff = cr.variables['MARGIN_AUTO_FF'] || 'auto'; var margin_auto_ie = cr.variables['MARGIN_AUTO_IE'] || 'false'; var banner_swf_url = cr.assets['BANNER']; var backup_img_url = cr.assets['NOSCRIPT_BANNER']; var banner_click = cr.clicks['CLICK']; var backup_banner_click = cr.clicks['NOSCRIPT_CLICK']; var publisher_click = ADCENTRIC.env.util.getPublisherClick10801(); var swf_id = Math.floor(Math.random() * 1000000); var on_load = cr.variables['ON_LOAD'] || 'true'; var force_backup_gif = cr.variables['FORCE_BACKUP_GIF'] || 'false'; var click_over_swf = cr.variables['CLICK_OVER_SWF'] || 'false'; var border = cr.variables['BORDER'] || 'false'; var cachebust = Math.random(); if(is_dap == "false"){ is_dap = false; } if(force_backup_gif == "false"){ force_backup_gif = false; } if(click_over_swf == "false"){ click_over_swf = false; } if(border == "false"){ border = false; } else if(border == "true"){ border = true; } return { adcAction: function(name, qstring_obj){ var event_pixel = new Image(); var rn = Math.random(); var obj_to_string = ""; var dispatcher = ADCENTRIC.tracking.EventPixelDispatcher(); if(qstring_obj){ for(var key in qstring_obj){ obj_to_string += key + "=" + qstring_obj[key] + '&'; } dispatcher.dispatch(ADCENTRIC.env.creatives[creative_id].placements[placement_id].interactions[name] + "?" + obj_to_string); }else{ dispatcher.dispatch(ADCENTRIC.env.creatives[creative_id].placements[placement_id].interactions[name]); } }, id: function() { return ADCENTRIC.env.architectures['DOM_id_prefix'] + "_" + String(creative_id) + "_" + String(placement_id); }, container_id: function() { return ADCENTRIC.env.architectures['DOM_id_prefix'] + "_container_" + String(creative_id) + "_" + String(placement_id); }, width: function() { return width; }, set_width: function(new_width) { width = new_width; }, height: function() { return height; }, set_height: function(new_height) {height = new_height;}, zindex: function() {return zindex;}, set_zindex: function(new_zindex) {zindex = new_zindex;}, position: function() {return position;}, set_position: function(new_position) {position = new_position;}, on_load: function() {return on_load;}, set_on_load: function(new_on_load) { on_load = new_on_load; }, margin_auto: function() { var ie = (navigator.appName.indexOf("Microsoft") != -1) ? 1 : 0; if (ie) { var margin_auto = margin_auto_ie; } else { var margin_auto = margin_auto_ff; } if (margin_auto != "false") { return 'margin: auto;'; } else { return ""; } }, set_margin_auto: function(new_margin_auto) { var ie = (navigator.appName.indexOf("Microsoft") != -1) ? 1 : 0; if (ie) { margin_auto_ie = new_margin_auto; } else { margin_auto_ff = new_margin_auto; } margin_auto = new_margin_auto; }, show_border: function() { if (border != false && border != true && border.indexOf('px') != -1) { return "border: "+ border + ";"; } else if (border != false) { return "border: 1px solid black;"; } else { return ""; } }, set_border: function(new_border) { border = new_border; }, to_string: function() { var extra_assets = ""; for(var key in cr.assets) { if(key != "BANNER" && key != "NOSCRIPT_BANNER") { extra_assets += "&" + key + "=" + cr.assets[key]; } } var banner_swf = ADCENTRIC.util.FlashTag(banner_swf_url,this.width(), this.height()); banner_swf.set_id(this.id()); banner_swf.set_scale(null); banner_swf.set_msie_wmode(msie_wmode); banner_swf.set_ff_wmode(ff_wmode); var flashvars_string = 'clickTag='+publisher_click + banner_click + '&clickTAG='+publisher_click + banner_click + '&clicktag='+publisher_click + banner_click + '&number=' +cachebust; banner_swf.set_flashvars(flashvars_string); if(navigator.appName.indexOf("Microsoft") != -1) { banner_swf.set_querystring(flashvars_string); } return banner_swf.to_string(); }, banner_container: function() { /* Setup the creative container */ var container = '
'; return container; }, click_container: function() { /* Setup the creative container */ var abs_pos = ADCENTRIC.util.getElementPosition(this.container_id()) var click_container = ''; return click_container; }, setup: function() { var that = this; var container = document.getElementById(that.container_id()); if(ADCENTRIC.env.has_flash && !(force_backup_gif)){ container.innerHTML = that.to_string(); container.onmouseout = function() { var img=new Image(); img.src="http://adc2.adcentriconline.com/adcentric/event/1498/3/43152;id=29566"; }; }else{ container.innerHTML = '